import Vue from 'vue'
import VueI18n from 'vue-i18n'
import App from './App.vue'
import router from './router'
import store from './store'
import CustomDirectives from './directive'
// element 相关组件
import './plugins/element'
// icon-svg 配置
import './icons/index'

// i18n 配置
import messages from './lang'
Vue.use(VueI18n)
const i18n = new VueI18n({
  locale: 'zh-cn',
  messages,
  fallbackLocale: 'zh-cn'
})
// custom directive
Vue.use(CustomDirectives)
// custom components
import './components/installAll'

import './styles/animation.less'
import config from './config'
Vue.config.productionTip = false

console.log(process.env)
console.log(config)

new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App)
}).$mount('#app')
